package com.goldcn.order.dao;

import com.goldcn.order.model.CommissionUser;
import org.apache.ibatis.annotations.Param;

public interface CommissionUserMapper {
    int deleteByPrimaryKey(Long userCommissionID);

    int insert(CommissionUser record);

    int insertSelective(CommissionUser record);

    CommissionUser selectByPrimaryKey(Long userCommissionID);

    int updateByPrimaryKeySelective(CommissionUser record);

    int updateByPrimaryKey(CommissionUser record);

    CommissionUser selectByUserID(Long userID);

    int addCommission(@Param("userCommissionID")Long userCommissionID,@Param("commission") Long commission,@Param("lastTime")Long lastTime,
                      @Param("md5")String md5,@Param("oldMd5")String oldMd5);

    int consumeCommission(@Param("userCommissionID")Long userCommissionID,@Param("commission") Long commission,@Param("lastTime")Long lastTime,
                      @Param("md5")String md5,@Param("oldMd5")String oldMd5);





}